<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- 分页 -->
<div class="paging">
   共 <span id="totalRecords"><{$count}></span>记录,每页  
 <select id="max_result" onchange="to_page(1);">
	<option value="10" <{if $maxresult==10}>selected="selected"<{/if}>>10</option>
	<option value="20" <{if $maxresult==20}>selected="selected"<{/if}>>20</option>
	<option value="50" <{if $maxresult==50}>selected="selected"<{/if}>>50</option>
	<option value="100" <{if $maxresult==100}>selected="selected"<{/if}>>100</option>
    </select> 
      <span id="page-link">
       <{if $page gt 1}>
        <a href="javascript:to_page(1);">首页</a>
        <a href="javascript:to_page(<{$page-1}>);">上页</a>
       <{/if}>
       <{if $page gt 0 && $page lt $total}>
         <a href="javascript:to_page(<{$page+1}>);">下页</a>
         <a href="javascript:to_page(<{$total}>);">末页</a>
       <{/if}>
      <select  onchange="to_page(this.value);">
         <{section name=i loop=$total step=1}>
         <option value="<{$smarty.section.i.index+1}>" <{if ($smarty.section.i.index+1)==$page}>selected="selected"<{/if}>><{$smarty.section.i.index+1}></option>
         <{/section}> 
      </select>
   </span>
<input type="hidden" value="<{$page}>" id="page"/>
</div>
<!-- END 分页 -->